﻿using System.Collections.Generic;
using System.ComponentModel;

namespace Estimate
{
    public class BudgetMain 
    {
        public BudgetMain ()
        {
            BudgetDetails = new List<BudgetDetail>();
            Footer = new List<ProductInInvoice>();
        }

        public string Firm1 { get; set; }
        public string Firm2 { get; set; }
        public string ObjectContract { get; set; }
        public string ObjectName { get; set; }
        public string ObjectAddress { get; set; }
        public string ReportTitle { get; set; }
        public List<BudgetDetail> BudgetDetails { get; set; }
        public List<ProductInInvoice> Footer { get; set; }

        public System.Collections.IList GetList()
        {
            var source = new BindingList<BudgetMain>();
            return source;
        }
    }

    public class BudgetDetail
    {
        public BudgetDetail ()
        {
            Products = new List<ProductInInvoice>();
            Footer = new List<ProductInInvoice>();
        }

        public List<ProductInInvoice> Products { get; set; }
        public List<ProductInInvoice> Footer { get; set; }
        public string Title { get; set; }
        

        public System.Collections.IList GetList()
        {
            var source = new BindingList<BudgetDetail>();
            return source;
        }
    }


}